import { Component, Input, OnInit } from '@angular/core';
import { MessageI } from 'src/app/model/message.interface';
import { UserI } from 'src/app/model/user.interface';
import { AuthService } from 'src/app/public/services/auth-service/auth.service';

@Component({
  selector: 'app-chat-message',
  templateUrl: './chat-message.component.html',
  styleUrls: ['./chat-message.component.scss']
})
export class ChatMessageComponent implements OnInit {

  @Input() message:MessageI;

  user:UserI = this.authService.getLoggedInUser()

  constructor(private authService:AuthService) { }

  ngOnInit(): void {
  }

}
